﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using EShop.Core;
using EShop.Core.Model.Market;

namespace EShop.Services.Market
{
    public interface IAdvertise
    {
        int AddBrand(Advertise model);
        bool UpdateAdvertise(Advertise model);
        List<Advertise> GetAllAdvertise(bool showHidden = false);
        IPagedList<Advertise> GetAllAdvertise(int pageIndex, int pageSize, bool showHidden = false);
        List<Advertise> GetAdvertiseByFiter(DateTime? starttime, DateTime? endtime, string Adurl, string Adname, string Flag, bool showHidde = false);
        Advertise GetAdvertiseById(int id);
        List<Advertise> GetPicAdvertise(int pagesize);
        List<Advertise> GetTxtAdvertise(int pagesize);
        List<Advertise> GetAdvertise(int pagesize);
        List<Advertise> GetAdvertiseFromId(string id);
    }
}
